public class Test {
    public  static int func1(int[] array){
        int sum=0;
        for (int i = 0; i < array.length; i++) {
            sum^=array[i];
        }
        return sum;
    }

    public static void main(String[] args) {
        int [] array={1,1,2,3,2,5,5};
        System.out.println(func1(array));
    }
}
